package org.baygo.view.fxview;

import com.babygo.transport.api.FileChooseHandler;
import javafx.stage.FileChooser;

import java.io.File;

public class FxFileChooseHandler implements FileChooseHandler {

    @Override
    public File chooseFile() {
        FileChooser fileChooser = new FileChooser();
        fileChooser.setTitle("Save File");
        File file = fileChooser.showOpenDialog(BabyGoApplication.mainStage);
        return file;
    }
}